<!DOCTYPE html>
<html lang="en" xmlns:v-on="http://www.w3.org/1999/xhtml"
      xmlns:v-bind="http://www.w3.org/1999/xhtml">
<head>
    <meta charset="UTF-8">
    <title>用款申请-详细</title>
    <meta http-equiv="pragma" content="no-cache">
    <meta http-equiv="Cache-Control" content="no-store, must-revalidate">
    <meta http-equiv="expires" content="Wed, 26 Feb 1997 08:21:57 GMT">
    <meta http-equiv="expires" content="-1">
    <meta content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no"
          name="viewport">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <link rel="shortcut icon" href="/dist/img/icon.png" type="image/x-icon">
    <!-- Bootstrap 3.3.6 -->
    <link rel="stylesheet" href="/dist/plugins/bootstrap/css/bootstrap.min.css">
    <!--字体-->
    <link rel="stylesheet" href="/dist/css/font-awesome.min.css">
    <!--图标-->
    <link rel="stylesheet" href="/dist/css/ionicons.min.css">
    <!--插件样式-->
    <link href="/dist/plugins/ztree/css/zTreeStyle/zTreeStyle.css" rel="stylesheet"/>
    <link rel="stylesheet" href="/dist/plugins/webuploader-0.1.5/webuploader.css">
    <!--OA主样式-->
    <link rel="stylesheet" href="/dist/css/OA.min.css?t=f5a12a1d">
    <link rel="stylesheet" href="/dist/css/skins/OA-skins.min.css?t=16f1e6f3">
</head>
<body>
<section class="content" id="app">
    <textarea style="width:95%;margin: 0 auto;outline: none;resize: none;position: relative;
    left: 10px;color: #2a8cec;" rows="10" cols="30" id="printText" class="printInput" v-model="description">
    </textarea>
    <input class="btn oaBtn btn-sm printBtn" type="button" value="确认打印" style="position: relative;
    left: 105px;top: 10px;" onclick="printOk()">
</section>
<script src="https://file.ggxqce.com/web/jquery-2.2.3.min.js"></script>
<!--插件JS-->
<script src="https://file.ggxqce.com/web/bootstrap.min.js"></script>
<!--框架已定义 JS-->
<script src="/dist/js/app_iframe.js?t=7e54a132"></script>
<!--oa自定义  JS-->
<script src="/dist/js/oa.js?t=63aed32f"></script>

<script src="https://file.ggxqce.com/web/vue.min.js"></script>
<script type="text/javascript" src="/dist/plugins/My97DatePicker/WdatePicker.js"></script>
<script type="text/javascript" src="/dist/js/pages/apply/money/class.js"></script>
<script type="text/javascript" src="/dist/plugins/print/print.js"></script>
<script>
    var api = frameElement.api, W = api.opener;
    $.wyui.postMethod("/apply/getDescriptionById.json", {
        id: parent.app.id
    }, function (res) {
        console.log(res.description)
        $("#printText").val(res.description)
    });
//    if($.wyui.page.urlParams&&$.wyui.page.urlParams.description){
//        console.log($.wyui.page.urlParams.description)
//       $("#printText").val($.wyui.page.urlParams.description)
//    }
    function printOk() {
        if($(".printInput").val()==''){
            alert("请填写用款事由（打印）");
        }else{
            parent.prints($(".printInput").val());
            $.wyui.postMethod("/apply/printCount.json", {
                id: parent.app.id
            }, function (res) {
                console.log(res);
                parent.app.money.main.printTimes++;
            })
        }
    }

</script>
</body>
</html>